package com.bobo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bobo.domain.SysRole;
import com.bobo.domain.SysUserRole;
import com.bobo.service.SysRoleService;
import com.bobo.mapper.SysRoleMapper;
import com.bobo.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author THINKAPD
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2022-11-18 10:50:54
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{
    @Autowired
    SysRoleMapper sysRoleMapper;
    @Autowired
    SysUserRoleService sysUserRoleService;

    @Override
    public List<String> getAuthByUserId(Integer uid) {
          return sysRoleMapper.getAuthByUserId(uid);
    }
}




